<!DOCTYPE html>
<html>
<head>
    <% include common/meta.ejs %>
    <title>合同详情</title>
    <% include common/public.ejs %>
    <link rel="stylesheet" href="<%= global.config.publicPath %>/page/css/mall_wx.css"/>
</head>
<body ontouchstart class="">

<div class="news_xq">
    <div>
        <p class="name"><%- data.name %></p>
    </div>

</div>

<div class="weui_panel weui_panel_access">
    <div class="weui_panel_bd">
        <div class="weui-row">
            <div class="weui-col-33">
                <p>处理人</p>
                <p class="x-fs-080"><%= data.modifiedBy %></p>
            </div>
            <div class="weui-col-33">
                <p>创建时间</p>
                <p class="x-fs-080"><%= data.modifiedDate %></p>
            </div>
            <div class="weui-col-33">
                <p>编码</p>
                <p class="x-fs-080"><%= data.code %></p>
            </div>
        </div>
        <hr/>
        <div class="weui-row">
            <div class="weui-col-33">
                <p>租金</p>
                <p class="x-fs-080"><%= data.house.monthly %></p>
            </div>
            <div class="weui-col-33">
                <p>房型</p>
                <p class="x-fs-080"><%= data.house.houseTypeName %></p>
            </div>
            <div class="weui-col-33">
                <p>面积</p>
                <p class="x-fs-080"><%= data.house.area %>㎡</p>
            </div>
        </div>
    </div>
</div>

<div class="weui_cells_title">房屋详情</div>
<div class="weui_cells" style="font-size: 0.7rem;">
    <div class="weui_cell">
        <div class="weui_cell_bd">
            <p>地址：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.house.myAddress %>
        </div>
    </div>


    <div class="weui_cell">
        <div class="weui_cell_bd ">
            <p>楼层：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.house.floor %>层
        </div>
    </div>

</div>


<div class="weui_cells_title">会员详情</div>
<div class="weui_cells" style="font-size: 0.7rem;">
    <div class="weui_cell">
        <div class="weui_cell_bd">
            <p>会员名称：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.user.name %>
        </div>
    </div>
    <div class="weui_cell">
        <div class="weui_cell_bd">
            <p>身份证号：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.user.idCard %>
        </div>
    </div>


    <div class="weui_cell">
        <div class="weui_cell_bd ">
            <p>联系方式：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.user.phone %>
        </div>
    </div>
</div>



<div class="weui_cells_title">租房详情</div>
<div class="weui_cells" style="font-size: 0.7rem;">
    <div class="weui_cell">
        <div class="weui_cell_bd">
            <p>押金：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.pledge %>
        </div>
    </div>
    <div class="weui_cell">
        <div class="weui_cell_bd">
            <p>租房时间：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.startDate.substring(0,(data.startDate).length-8) %> 至
            <%= data.endDate.substring(0,(data.startDate).length-8) %>
        </div>
    </div>
    <div class="weui_cell">
        <div class="weui_cell_bd ">
            <p>付款周期：</p>
        </div>
        <div class="weui_cell_ft">
            <%
                var getPayCycle;
                var _payCycle=data.payCycle;
                if(_payCycle==1){
                    getPayCycle='一月一付';
                }else if(_payCycle==3){
                    getPayCycle='一季度一付';
                }else if(_payCycle==6){
                    getPayCycle='半年一付';
                }else{
                    getPayCycle='一年一付';
                }
            %>
            <%=getPayCycle%>
        </div>
    </div>
</div>



<div class="weui_cells_title">初始详情</div>
<div class="weui_cells" style="font-size: 0.7rem;">
    <div class="weui_cell">
        <div class="weui_cell_bd">
            <p>初始水表：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.water%>
        </div>
    </div>
    <div class="weui_cell">
        <div class="weui_cell_bd">
            <p>初始电表：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.electric%>
        </div>
    </div>
    <div class="weui_cell">
        <div class="weui_cell_bd ">
            <p>初始燃气：</p>
        </div>
        <div class="weui_cell_ft">
            <%= data.gas %>
        </div>
    </div>
</div>




<% include common/footer.ejs %>
</body>
</html>
